<ul>
{% for background in backgrounds %}
<li{% if loop.index is sameas(1) %} class="active"{% endif %}><a href='{{ asset('images/photo/backgrounds/'~background.id~'.jpg') }}' target="_blank" ><img src='{{ asset('images/photo/backgrounds/'~background.id~'t.jpg') }}' alt='{{ ("title."~background.id) | trans({},"images") | raw }}' title='{{ ("title."~background.id) | trans({},"images") | raw }}' /></a></li>
{% endfor %}
</ul>